package ${packageName}.${moduleName}.dao.impl;

import org.ko.core.dao.hibernate4.BaseTypedDao;
import org.ko.core.dao.support.Finder;
import org.ko.core.websupport.page.Page;
import org.springframework.stereotype.Repository;

import ${packageName}.${moduleName}.dao.${ClassName}Dao;
import ${packageName}.${moduleName}.domain${subModuleName}.${ClassName};


/**
 * ${functionName}DAO接口实现
 * @author ${classAuthor}
 * @version ${classVersion}
 */
@Repository
public class ${ClassName}DaoImpl extends BaseTypedDao<${ClassName}, Long> implements ${ClassName}Dao{

	@Override
	protected Class<${ClassName}> getEntityClass() {
		return ${ClassName}.class;
	}

	@Override
	public Page findPage(int pageNo, int pageSize) {
		Finder f = Finder.create("FROM ${ClassName}");
		
		return find(f, pageNo, pageSize);
	}

}